home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / rmdir.man < prev    next >
Encoding:
Text File  |  1991-12-17  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. RMDIR                     User Commands                     RMDIR
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      rmdir, rm  - remove (unlink) directories or files
  10.  
  11. SSYYNNOOPPSSIISS
  12.      rrmmddiirr dir ...
  13.  
  14.      rrmm [ --ff ] [ --rr ] [ --ii ] [ -- ] file ...
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      _R_m_d_i_r removes entries for the named directories, which must
  18.      be empty.
  19.  
  20.      _R_m removes the entries for one or more files from a direc-
  21.      tory.  If an entry was the last link to the file, the file
  22.      is destroyed.  Removal of a file requires write permission
  23.      in its directory, but neither read nor write permission on
  24.      the file itself.
  25.  
  26.      If a file has no write permission and the standard input is
  27.      a terminal, its permissions are printed and a line is read
  28.      from the standard input.  If that line begins with `y' the
  29.      file is deleted, otherwise the file remains.  No questions
  30.      are asked and no errors are reported when the --ff (force)
  31.      option is given.
  32.  
  33.      If a designated file is a directory, an error comment is
  34.      printed unless the optional argument --rr has been used.  In
  35.      that case, _r_m recursively deletes the entire contents of the
  36.      specified directory, and the directory itself.
  37.  
  38.      If the --ii (interactive) option is in effect, _r_m asks whether
  39.      to delete each file, and, under --rr, whether to examine each
  40.      directory.
  41.  
  42.      The null option -- indicates that all the arguments following
  43.      it are to be treated as file names.  This allows the specif-
  44.      ication of file names starting with a minus.
  45.  
  46. SSEEEE AALLSSOO
  47.      rm(1), unlink(2), rmdir(2)
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 29, 1985                         1
  64.  
  65.  
  66.  
  67.